package com.bjpowernode.app;

public class MyApp7 {


    Runnable r1=()->{
        while (true){
            try {
                Thread.sleep(1);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
            System.out.println("okokokoko");
        }
    };
    Runnable r2=()->{
        while (true){
            try {
                Thread.sleep(1);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
            System.out.println("okokokoko");
        }
    };

    public static void main(String[] args) {
        MyApp7 myApp7=new MyApp7();
        Thread t1=new Thread(myApp7.r1,"r1");
        Thread t2=new Thread(myApp7.r2,"r2");

        t1.start();
        t2.start();

    }

}
